const {getReadDetail} = require("../../utils/http")
Page({

    data: {
        pic:"",
        title:"",
        slogo:"",
        msg:""
    },

    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function (options) {
        var {id} = options;
        // console.log(id);
        
        getReadDetail(id).then(res=>{
            // console.log(res.data);
            
            this.handleDetailData(res)
        })
    },
    handleDetailData(res){
        var{pic,title,slogo} = res.data
             
                this.setData({
                    pic,
                    title,
                    slogo,
                })
    }
})